<section class="content-header">
	<h1>
		{{title}}<small></small>
	</h1>
</section>
<section class="content">
	<div class="box box-default">
		<div class="col-md-12">
			<div class="box-body" ng-controller="membergrade">
				<alertdanger></alertdanger>
				<alertsuccess></alertsuccess>
				<form role="form">
					<div class="box-body">
						<div class="form-group">
							<label>等级类型</label>
							<div class="control">
								<label> <input type="radio" ng-model="type"
									ng-value="1" class="flat-red" ng-checked="true"> 信用制度
								</label> <label> <input type="radio" ng-model="type"
									ng-value="2" class="flat-red"> 经验值制度
								</label>
							</div>
						</div>
						<div class="form-group">
							<label>等级名称</label> <input maxlength="20" required="required"
								ng-model="name" class="form-control" type="text"
								placeholder="请输入等级名称" value="">
						</div>
						<div class="form-group">
							<label>等级范围开始值</label> <input maxlength="20" required="required"
								ng-model="start" class="form-control" type="text"
								placeholder="请输入等级范围开始值" value="">
						</div>
						<div class="form-group">
							<label>等级范围结束值</label> <input maxlength="20" required="required"
								ng-model="end" class="form-control" type="text"
								placeholder="请输入等级范围结束值" value="">
						</div>
						<div class="form-group">
							<label>增量</label> <input maxlength="20" required="required"
								ng-model="increment" class="form-control" type="text"
								placeholder="请输入增量" value="">
						</div>
						<div class="form-group">
							<label>倍率</label> <input maxlength="20" required="required"
								ng-model="multiplypower" class="form-control" type="text"
								placeholder="请输入倍率" value="">
						</div>
						<div class="form-group">
							<label>倍率启用状态</label>
							<div class="control">
								<label> <input type="radio" ng-model="mpstate"
									ng-value="1" class="flat-red" ng-checked="true"> 开启倍率 
								</label> <label> <input type="radio" ng-model="mpstate"
									ng-value="0" class="flat-red"> 关闭倍率
								</label>
							</div>
						</div>
						<div class="form-group">
							<label>积分兑换比率</label> <input maxlength="20" required="required"
								ng-model="mpchangepower" class="form-control" type="text"
								placeholder="请输入积分兑换比率" value="">
						</div>
						<div class="form-group">
							<label>折扣率</label> <input maxlength="20" required="required"
								ng-model="discount" class="form-control" type="text"
								placeholder="请输入折扣率" value="">
						</div>
						<div class="form-group">
							<label> <input type="radio" ng-model="status"
								ng-value="1" class="flat-red" ng-checked="true"> 启用
							</label> <label> <input type="radio" ng-model="status"
								ng-value="0" class="flat-red"> 禁用
							</label>
						</div>
					</div>
					<div class="box-footer">
						<button ng-show="savebtn.show" type="button"
							class="btn btn-primary" ng-click="save();">保存</button>
						<button ng-show="updatebtn.show" type="button"
							class="btn btn-primary" ng-click="update();">更新</button>
					</div>
				</form>
			</div>
		</div>
		<div class="box-footer"></div>
	</div>
</section>